<template>
	<textarea id="default-editor"> </textarea>
	<el-button type="primary" @click="handleSubmit">提交</el-button>
</template>

<script>
export default {
	methods: {
		handleSubmit() {
			// 获取内容的方式
			console.log(tinymce.activeEditor.getContent())
		},
	},
	mounted() {
		tinymce.init({
			selector: 'textarea#default-editor',
			branding: false,
			height: 900,
			plugins: 'advlist link image lists paste',
			paste_data_images: true,
		})
	},
}
</script>

<style></style>
